<template>
	<view class="content">
		<view class="gorule-log-info" v-for="(item,index) in list" :key='index'>
			<view class="gorule-log-info-money" >
				<view>提现到{{item.whereabouts_text}}</view>
				<view>{{item.money}}元</view>
			</view>
			<view class="gorule-log-info-time">
				<view>{{item.create_time_text}}</view>
				<view style="color:#1FD188;">{{item.status_text}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
	    data() {
	        return {
				list:[]
	        };
	    },
	    onLoad() {
			this.info()
		},
	    methods: {
			info(){
				let userinfo = uni.getStorageSync('userinfo');
				uni.showLoading({
					title:"加载中"
				})
				this.$api.interfaceApi('getgorulealllog')({
					user_id:userinfo.id,
				}).then(res=>{
					if(res.code == 200){
						this.list = res.data
						
					}
					uni.hideLoading()
				})
			}
			
		}
	};
</script>

<style lang="less" scoped>
	.content{

		.gorule-log-info{
			padding: 20rpx;
			border-top:  1rpx solid #e2e2e2;
			.gorule-log-info-money{
				display: flex;
				justify-content: space-between;
				color:#565656;
			}
			.gorule-log-info-time{
				margin-top: 6rpx;
				font-size: 24rpx;
				color: #999999;
				display: flex;
				justify-content: space-between;
			}
		}
	
	}
</style>
